home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Samples / SampleDir / XABatch.dtd < prev    next >
Encoding:
Text File  |  2000-07-03  |  4.6 KB  |  117 lines  |  [TEXT/ttxt]

  1. <!-- An inter-application message and batch processing format for XA.-->
  2. <?XA_VERSION_HISTORY DATE = '4/5/00' VERSION = '1.2' NAME = 'Scott Vorthmann' NOTES = 'added ImportExemplar' ?>
  3.  
  4. <?XA_VERSION_HISTORY DATE = '12/7/99' VERSION = '1.0' NAME = 'Scott Vorthmann' NOTES = 'notification for all commands' ?>
  5.  
  6. <?XA_VERSION_HISTORY DATE = '6/27/99' VERSION = '0.1' NAME = 'LeeBuck' NOTES = 'First cut.' ?>
  7.  
  8. <?XA_DOC_PREFS PROMPT_WHEN_SAVING = 'true' LOG_CHANGES = 'false' ?>
  9.  
  10. <!ENTITY % anyCommand "OpenSchema
  11.                        | CloseSchema
  12.                        | SaveSchema
  13.                        | SaveAsSchema
  14.                        | PrintDiagram
  15.                        | ImportExemplar
  16.                        | Exit">
  17.  
  18. <!--A command sent to XML Authority over a socket.-->
  19. <!ELEMENT XACommand  (%anyCommand; )>
  20.  
  21. <!--A specifier for the sender of the command. Syntax undetermined at this point.-->
  22. <!ATTLIST XACommand from CDATA  #REQUIRED>
  23.  
  24. <!-- A list of commands found in a batch (.xab) file -->
  25. <!ELEMENT XABatch  (%anyCommand; )+>
  26.  
  27. <!--Open the schema specified in the attribute uri. If the schema is already open, bring its window to the front.
  28. In either event respond with a SchemaOpened event.-->
  29. <!ELEMENT OpenSchema EMPTY>
  30.  
  31. <!--Essentially a url (e.g. file:\\\c:\myschema.xdr).-->
  32. <!ATTLIST OpenSchema uri     CDATA     #REQUIRED>
  33.  
  34. <!ATTLIST OpenSchema a-dtype NMTOKENS  "uri uri">
  35.  
  36. <!--Close the schema specified in the attribute uri. If there are unsaved changes, the saveFirst attribute is used to 
  37. determine the action. If successfully closed, a SchemaClosed response is sent.-->
  38. <!ELEMENT CloseSchema EMPTY>
  39.  
  40. <!ATTLIST CloseSchema uri       CDATA     #REQUIRED>
  41.  
  42. <!--Should the schema be saved before closing?-->
  43. <!ATTLIST CloseSchema saveFirst  (yes | no | ask )  "ask">
  44.  
  45. <!ATTLIST CloseSchema a-dtype   NMTOKENS  "uri uri">
  46.  
  47. <!ELEMENT SaveAsSchema EMPTY>
  48.  
  49. <!ATTLIST SaveAsSchema asuri   CDATA     #REQUIRED>
  50.  
  51. <!--Essentially a url (e.g. file:\\\c:\myschema.xdr).-->
  52. <!ATTLIST SaveAsSchema uri     CDATA     #REQUIRED>
  53.  
  54. <!ATTLIST SaveAsSchema a-dtype NMTOKENS  "asuri uri
  55.                                           uri   uri">
  56.  
  57. <!--Saves the schema specified in the attribute uri. If there were unsaved changes, a SchemaSaved response is sent.-->
  58. <!ELEMENT SaveSchema EMPTY>
  59. <!ATTLIST SaveSchema  uri     CDATA     #REQUIRED
  60.                       a-dtype NMTOKENS  'uri uri' >
  61. <!--Exits XML Authority. If there were unsaved changes, saveFirst determines how handled. 
  62. If all documents successfully closed an Exited response is sent.-->
  63. <!ELEMENT Exit EMPTY>
  64. <!ATTLIST Exit  saveFirst  (yes | no | ask )  'ask' >
  65. <!--#USAGE:Save the content model diagram of the specified element to a GIF file.-->
  66. <!ELEMENT PrintDiagram EMPTY>
  67.  
  68. <!--#USAGE:Specifies which element to generate the content model diagram.-->
  69. <!ATTLIST PrintDiagram elementType CDATA     #FIXED "">
  70.  
  71. <!--#USAGE:Specifies whether to expand the content model diagram fully or not.-->
  72. <!ATTLIST PrintDiagram expand       (true | false )  "true">
  73.  
  74. <!--#USAGE:The uri of the image file to save to (as GIF).-->
  75. <!ATTLIST PrintDiagram image       CDATA     #FIXED "">
  76.  
  77. <!--#USAGE:URI of file to open or file to retrieve element for saving diagram.  In the later case, can be unspecified and defaults to the current schema.
  78. -->
  79. <!ATTLIST PrintDiagram uri         CDATA     "">
  80.  
  81. <!ATTLIST PrintDiagram a-dtype     NMTOKENS  "image uri
  82.                                               uri   uri">
  83.  
  84. <!--A notification response sent by XA over a socket.-->
  85. <!ELEMENT XANotification  (SchemaOpened | SchemaClosed | SchemaSaved | DiagramPrinted | Exited )>
  86.  
  87. <!--A specifier for recipient of the command. Syntax undetermined at this point.-->
  88. <!ATTLIST XANotification to CDATA  #REQUIRED>
  89.  
  90. <!--The schema specified by uri has been opened.-->
  91. <!ELEMENT SchemaOpened EMPTY>
  92. <!ATTLIST SchemaOpened  uri     CDATA     #REQUIRED
  93.                         a-dtype NMTOKENS  'uri uri' >
  94. <!--The schema specified by uri has been closed-->
  95. <!ELEMENT SchemaClosed EMPTY>
  96. <!ATTLIST SchemaClosed  uri     CDATA     #REQUIRED
  97.                         a-dtype NMTOKENS  'uri uri' >
  98. <!--The schema specified by uri has been changed.-->
  99. <!ELEMENT SchemaSaved EMPTY>
  100. <!ATTLIST SchemaSaved  uri     CDATA     #REQUIRED
  101.                        a-dtype NMTOKENS  'uri uri' >
  102. <!--The application has quit.-->
  103. <!ELEMENT Exited EMPTY>
  104.  
  105. <!ELEMENT DiagramPrinted EMPTY>
  106.  
  107. <!ELEMENT ImportExemplar EMPTY>
  108.  
  109. <!--Essentially a url (e.g. file:\\\c:\myschema.xdr).-->
  110. <!ATTLIST ImportExemplar uri     CDATA     #REQUIRED>
  111.  
  112. <!ATTLIST ImportExemplar asuri   CDATA     #REQUIRED>
  113.  
  114. <!ATTLIST ImportExemplar a-dtype NMTOKENS  "uri   uri
  115.                                             asuri uri">
  116.  
  117.